﻿@model GestionInmobiliaria.Web.ProformaWS.Proforma
           
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2>Crear Proforma</h2>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Proforma</legend>

        
        <div class="editor-label">
            @Html.LabelFor(model => model.Fecproforma)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fecproforma)
            @Html.ValidationMessageFor(model => model.Fecproforma)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cliente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cliente)
            @Html.ValidationMessageFor(model => model.Cliente)
        </div>

         <div class="editor-label">
            @Html.LabelFor(model => model.Cantidad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cantidad)
            @Html.ValidationMessageFor(model => model.Cantidad)
        </div>



        <div class="editor-label">
            @Html.LabelFor(model => model.idmoneda)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.idmoneda, new SelectList(
                              new List<Object>{ 
                                   new { value = -1 , text = "-- Seleccionar --" },
                                   new { value = 0 , text = "Soles" },
                                   new { value = 1 , text = "Dolares" }
                                },
                              "value",
                              "text",
                               -1))

            @Html.ValidationMessageFor(model => model.idmoneda)
        </div>



        <div class="editor-label">
            @Html.LabelFor(model => model.Subotal)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subotal)
            @Html.ValidationMessageFor(model => model.Subotal)
        </div>

                <div class="editor-label">
            @Html.LabelFor(model => model.Igv)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Igv)
            @Html.ValidationMessageFor(model => model.Igv)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Total)
        <div class="editor-field">
            @Html.EditorFor(model => model.Total)
            @Html.ValidationMessageFor(model => model.Total)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Idunidadinmobiliaria)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Idunidadinmobiliaria)
            @Html.ValidationMessageFor(model => model.Idunidadinmobiliaria)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>